Skip to content

Feature/cnfw mge#290

Merged
NiekWielders merged 5 commits intomainfrom
feature/cnfw_mge
Mar 6, 2026
Merged

Feature/cnfw mge#290
NiekWielders merged 5 commits intomainfrom
feature/cnfw_mge

Conversation

@NiekWielders
Copy link
Copy Markdown
Collaborator

elliptical cnfw/cnfwLudlow/cnfwLudlowScatter via mge

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds elliptical cored-NFW (cNFW) support using MGE-based deflections and introduces corresponding MCR (Ludlow + scatter) variants, wiring them into public exports, configs, and tests.

Changes:

  • Introduce cNFW (elliptical) with deflections computed via MGEDecomposer, and refactor cNFWSph to subclass it.
  • Add elliptical cNFWMCRLudlow / cNFWMCRScatterLudlow implementations and export them through package __init__ modules.
  • Add/extend tests and prior configuration YAMLs for cNFW and the new MCR variants.

Reviewed changes

Copilot reviewed 10 out of 10 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
test_autogalaxy/profiles/mass/dark/test_nfw_scatter.py Extends scatter tests to cover elliptical cored-NFW MCR scatter behavior.
test_autogalaxy/profiles/mass/dark/test_nfw_mcr.py Adds assertions comparing cNFW MCR Ludlow results to equivalent cNFW constructed from (kappa_s, scale_radius, core_radius).
autogalaxy/profiles/mass/dark/cnfw_mcr_scatter.py Adds elliptical cNFWMCRScatterLudlow (inherits cNFW) alongside spherical variant.
autogalaxy/profiles/mass/dark/cnfw_mcr.py Refactors Ludlow classes to inherit from scatter implementations with scatter_sigma=0.0.
autogalaxy/profiles/mass/dark/cnfw.py Introduces cNFW with MGE-based deflections; makes cNFWSph a subclass.
autogalaxy/profiles/mass/dark/init.py Exposes new cNFW + MCR classes from the dark-mass namespace.
autogalaxy/profiles/mass/init.py Re-exports new dark-mass profile classes at the mass-profile namespace level.
autogalaxy/config/priors/mass/dark/cnfw_mcr_scatter.yaml Adds priors for cNFWMCRScatterLudlow (elliptical) alongside existing spherical priors.
autogalaxy/config/priors/mass/dark/cnfw_mcr.yaml Adds priors for cNFWMCRLudlow (elliptical) alongside existing spherical priors.
autogalaxy/config/priors/mass/dark/cnfw.yaml Adds priors for cNFW (elliptical) alongside existing cNFWSph priors.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@NiekWielders NiekWielders merged commit 59174cf into main Mar 6, 2026
8 checks passed
@NiekWielders NiekWielders deleted the feature/cnfw_mge branch March 6, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants